home *** CD-ROM | disk | FTP | other *** search
-
- CHECKPRN.COM
-
- PURPOSE:
-
- Returns batch ERRORLEVEL 1 if printer is off-line
- Returns batch ERRORLEVEL 0 if printer is on-line
-
- FORMAT:
-
- CHECKPRN
-
- COMMENTS:
-
- The printer checked is LPT1.
-
- If the DOS PRINT command was issued and there is an entry in the print
- queue, the printer will appear to be on-line, even if it is actually off-
- line.
-
- EXAMPLE:
-
- echo off
- cls
- checkprn
- if errorlevel 1 goto noprn
- echo PRINTER IS ON-LINE
- goto exit
- :noprn
- echo PRINTER IS OFF-LINE
- :exit
-
- DOUBLEDOS USERS NOTE:
-
- This program will work correctly with DoubleDOS if DDCONFIG.SYS contains
- the line:
-
- print driver = DIRECT
-
- If DoubleDOS is configured with any other print driver selection, the
- printer will always appear to be on-line.
-
-
- 5/22/86
- Thomas A. Lundin
- Graphics Unlimited Inc.
- 3000 2nd Street No.
- Minneapolis, MN 55411
- (612) 588-7571
-
-